package com.lhd.dao;

import com.lhd.po.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Repository
public interface UserDao {
    List<User> getAllUser();

    Integer addUser(User user);

    Integer updateUserById(User user);

    Integer deleteUserById(Integer id);

    User findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    User getUserById(@Param("id") Long id);
}
